package cn.techfan.customerserviceconsole;

import com.netflix.client.config.IClientConfig;
import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.WeightedResponseTimeRule;
import org.springframework.beans.factory.annotation.Autowired;

public class ConsoleRoutingConfig {

    @Autowired
    IClientConfig ribbonClientConfig;

    public IRule ribbonRule(IClientConfig config) {
        return new WeightedResponseTimeRule();
    }
}
